package zyb.myproject;

import java.util.Scanner;

//主界面操作  的 相关页面
public class ClientPage {

	public void showMessage(Cart cart) throws Exception {
		ClientOperateImpl client = new ClientOperateImpl();
		GoodsOperateImpl goi = new GoodsOperateImpl();
		int n;
		// do {
		Scanner sc = new Scanner(System.in);
		System.out.println("************用户界面************* ");
		System.out.println("1 登陆 ，2 注册");
		n = sc.nextInt();
		if (n == 1) {
			client.login();
			System.out.println("用户选购商品");
			goi.selectGoods(cart);
		} else if (n == 2) {
			client.regist();
		} else {
			System.out.println("您输入错误，请重新登陆");
			showMessage(cart);
		}
		// } while (n != 1 || n != 2);

	}
}
